<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>下单</title>

    <script type="text/javascript" src="jquery-3.5.1.min.js"></script>
    <script type="text/javascript" src="Math.uuid.js"></script>

</head>
<body>
<a href="#" id="gen_order">下单</a>

<script type="text/javascript">

    $(function () {
        let order_url = "/order?orderId=";
        $('#gen_order').attr('href', order_url + Math.uuid());
    })

</script>
</body>
</html>